home *** CD-ROM | disk | FTP | other *** search
/ MacWorld Secrets (4th Edition) / Mac Secrets CD 4th Ed.toast / Apple Advanced Technologies / Apple Speech Technologies 1.5 / PlainTalk Developer Info / Speech Recognition Manager SDK / SR 1.5 Interfaces & Lib / NewSRNames.dict next >
Text File  |  1996-10-29  |  8KB  |  237 lines

  1. #
  2. #     File:        NewSRNames.dict
  3. #     Copyright:    © 1995 by Apple Computer, Inc.
  4. #                 All rights reserved.
  5. #     Version:    PlainTalk 1.5 Developer Release
  6. #     Bugs?:        If you find a problem with this file, send the file and version
  7. #                 information (from above) and the problem description to:
  8. #                     Internet:    apple.bugs@applelink.apple.com
  9. #                     AppleLink:    APPLE.BUGS
  10. #
  11. #    Purpose:    This file was created to convert the older names of speech recognition
  12. #                types and constants to the names used in the final release.
  13. #
  14. #     Usage:         You need to run each file in your source through the Canon tool with
  15. #                this file.  Below is an example. Be sure to change the file extension
  16. #                if your sources source file names end in something other than ".c"
  17. #
  18. #    Note:        1)The Canon tool does simple text replacement.  It has no concept of
  19. #                grammar, so it might do a replacement that is not necessary.  The
  20. #                example below shows all the changes the tool makes.  You should
  21. #                review these changes manually.
  22. #                2) The sample script below makes changes to your source files, and  
  23. #                generates a log (a diff to stdout) of those changes.  You many wish 
  24. #                to make a backup of your sources before running the script.
  25. #  
  26. #     Set Sources ""            # set the variable Sources to the path of the sources.  (Ex.  Set Sources "Hard Disk:Sources:")
  27. #    Set    NewSRNames    ""        # set the variable to be the full path of this file     (Ex.  Set NewSRNames "Hard Disk:NewSRNames.dict")
  28. #    Set Exit 0
  29. #    For i in `Files -f -r "{Sources}"≈.c`
  30. #         If `Exists -f "{i}"`
  31. #            Canon -s "{NewSRNames}" "{i}" > "{i}.can"
  32. #            Compare "{i}" "{i}.can"
  33. #            Rename -y "{i}.can" "{i}"
  34. #        End
  35. #    End
  36. #
  37.  
  38. #################
  39. # Error codes
  40. #################
  41. eSRNotAvailable                    kSRNotAvailable
  42. eSRInternalError                kSRInternalError
  43. eSRComponentNotFound            kSRComponentNotFound
  44. eSROutOfMemory                    kSROutOfMemory
  45. eSRNotASpeechObject                kSRNotASpeechObject
  46. eSRBadParameter                    kSRBadParameter
  47. eSRParamOutOfRange                kSRParamOutOfRange
  48. eSRBadSelector                    kSRBadSelector
  49. eSRBufferTooSmall                kSRBufferTooSmall
  50. eSRNotARecSystem                kSRNotARecSystem
  51. eSRFeedbackNotAvail                kSRFeedbackNotAvail
  52. eSRCantSetProperty                kSRCantSetProperty
  53. eSRCantGetProperty                kSRCantGetProperty
  54. eSRCantSetDuringRecognition        kSRCantSetDuringRecognition
  55. eSRAlreadyListening                kSRAlreadyListening
  56. eSRNotListeningState            kSRNotListeningState
  57. eSRModelMismatch                kSRModelMismatch
  58. eSRNoClientLanguageModel        kSRNoClientLanguageModel
  59. eSRNoPendingUtterances            kSRNoPendingUtterances
  60. eSRRecognitionAborted            kSRRecognitionCanceled
  61. eSRRecognitionCanceled            kSRRecognitionCanceled
  62. eSRRecognitionDone                kSRRecognitionDone
  63. eSROtherRecAlreadyModal            kSROtherRecAlreadyModal
  64. eSRHasNoSubItems                kSRHasNoSubItems
  65. eSRSubItemNotFound                kSRSubItemNotFound
  66. eSRLanguageModelTooBig            kSRLanguageModelTooBig
  67. eSRAlreadyReleased                kSRAlreadyReleased
  68. eSRAlreadyFinished                kSRAlreadyFinished
  69. eSRWordNotFound                    kSRWordNotFound
  70. eSRNotFinishedWithRejection        kSRNotFinishedWithRejection
  71. eSRExpansionTooDeep                kSRExpansionTooDeep
  72. eSRTooManyElements                kSRTooManyElements
  73. eSRCantAdd                        kSRCantAdd
  74. eSRSndInSourceDisconnected        kSRSndInSourceDisconnected
  75. eSRCantReadLanguageObject        kSRCantReadLanguageObject
  76. eSRNotImplementedYet            kSRNotImplementedYet
  77.  
  78. #################
  79. # Speech objects
  80. #################
  81. SpeechObject                    SRSpeechObject
  82. RecognitionSystem                SRRecognitionSystem
  83. Recognizer                        SRRecognizer
  84. SpeechSource                    SRSpeechSource
  85. RecognitionResult                SRRecognitionResult
  86. LMObject                        SRLanguageObject
  87. LanguageObject                    SRLanguageObject
  88. LanguageModel                    SRLanguageModel
  89. LMPath                            SRPath
  90. LMPhrase                        SRPhrase
  91. LMWord                            SRWord
  92.  
  93. #################
  94. # Other types
  95. #################
  96. LMFlags                            SRLanguageObjectFlags
  97. SpeedSetting                    SRSpeedSetting
  98. RejectionLevel                    SRRejectionLevel
  99.  
  100. #################
  101. # Recognition System Types
  102. #################
  103. kDefaultRecognitionSystemID        kSRDefaultRecognitionSystemID
  104.  
  105. #################
  106. # Recognition System Properties
  107. #################
  108. kRejectedWord                    kSRRejectedWord
  109. kSeparationChars                kSRSeparationChars
  110. kFeedbackAndListeningModes        kSRFeedbackAndListeningModes
  111. kNoFeedbackNoListenModes        kSRNoFeedbackNoListenModes
  112. kHasFeedbackHasListenModes        kSRHasFeedbackHasListenModes
  113. kNoFeedbackHasListenModes        kSRNoFeedbackHasListenModes
  114.  
  115. #################
  116. # Speech Source Types
  117. #################
  118. kLiveDesktopSpeechSource        kSRLiveDesktopSpeechSource
  119. kCannedDesktopSpeechSource        kSRCanned22kHzSpeechSource
  120.  
  121. #################
  122. # Notification Flags
  123. #################
  124. kNotifyRecognitionBeginning        kSRNotifyRecognitionBeginning
  125. kNotifyRecognitionDone            kSRNotifyRecognitionDone
  126.  
  127. #################
  128. # AppleEvent constants
  129. #################
  130. keyRecognizer                    keySRRecognizer
  131. keySpeechResult                    keySRSpeechResult
  132. keySpeechStatus                    keySRSpeechStatus
  133. typeRecognizer                    typeSRRecognizer
  134. typeSpeechResult                typeSRSpeechResult
  135.  
  136. #################
  137. # Recognizer Properties
  138. #################
  139. kSearchStatusParam                kSRSearchStatusParam
  140. kNotificationParam                kSRNotificationParam
  141. kCallBackParam                    kSRCallBackParam
  142. kAutoFinishingParam                kSRAutoFinishingParam
  143. kForegroundOnly                    kSRForegroundOnly
  144. kBlockBackground                kSRBlockBackground
  145. kBlockModally                    kSRBlockModally
  146. kWantsResultTextDrawn            kSRWantsResultTextDrawn
  147. kWantsAutoFBGestures            kSRWantsAutoFBGestures
  148. kSoundInVolume                    kSRSoundInVolume
  149. kReadAudioFSSpec                kSRReadAudioFSSpec
  150. kCancelOnSoundOut                kSRCancelOnSoundOut
  151. kSpeedVsAccuracyParam            kSRSpeedVsAccuracyParam
  152.  
  153. kUseToggleListen                kSRUseToggleListen
  154. kUsePushToTalk                    kSRUsePushToTalk
  155.  
  156. kListenKeyMode                    kSRListenKeyMode
  157. kListenKeyCombo                    kSRListenKeyCombo
  158. kListenKeyName                    kSRListenKeyName
  159. kKeyWord                        kSRKeyWord
  160. kKeyExpected                    kSRKeyExpected
  161.  
  162. #################
  163. # Operational Status Flags
  164. #################
  165. kIdleRecognizer                    kSRIdleRecognizer
  166. kSearchInProgress                kSRSearchInProgress
  167. kSearchWaitForAllClients        kSRSearchWaitForAllClients
  168. kMustCancelSearch                kSRMustCancelSearch
  169. kPendingSearch                    kSRPendingSearch
  170.  
  171. #################
  172. # Recognition Result Properties
  173. #################
  174. kTEXTFormat                        kSRTEXTFormat
  175. kLMPhraseFormat                    kSRPhraseFormat
  176. kLMPathFormat                    kSRPathFormat
  177. kLanguageModelFormat            kSRLanguageModelFormat
  178.  
  179. #################
  180. # LanguageObject Family Properties
  181. #################
  182. kSpelling                        kSRSpelling
  183. kLMObjType                        kSRLMObjType
  184. kRefCon                            kSRRefCon
  185. kEnabled                        kSREnabled
  186. kOptional                        kSROptional
  187. kRepeatable                        kSRRepeatable
  188. kRejectable                        kSRRejectable
  189.  
  190. kPrimitive                        kSRPrimitive
  191. kRejectionLevel                    kSRRejectionLevel
  192. kFinishingFlags                    kSRFinishingFlags
  193.  
  194. #################
  195. # Language Object Types
  196. #################
  197. kLMType                            kSRLanguageModelType
  198. kPathType                        kSRPathType
  199. kPhraseType                        kSRPhraseType
  200. kWordType                        kSRWordType
  201.  
  202. #################
  203. # Default rejection level
  204. #################
  205. kDefaultLMRejectionLevel        kSRDefaultRejectionLevel
  206.  
  207. #################
  208. # Finishing Flags
  209. #################
  210. kAddPauses                        kSRAddPauses
  211. kAddRejection                    kSRAddRejection
  212. kAddNoise                        kSRAddNoise
  213. kMakeOptional                    kSRMakeOptional
  214. kMakeRepeatable                    kSRMakeRepeatable
  215.  
  216. kAddWordSpotting                kSRAddWordSpotting
  217. kDefaultFinishing                kSRDefaultFinishing
  218. kNoFinishing                    kSRNoFinishing
  219.  
  220. #################
  221. # Procedures
  222. #################
  223. SRAddLMObject                    SRAddLanguageObject
  224. SREmptyLMObject                    SREmptyLanguageObject
  225. SRChangeLMObject                SRChangeLanguageObject
  226. SRRemoveLMObject                SRRemoveLanguageObject
  227. SRAbortRecognition                SRCancelRecognition
  228. SRGetIndItem                    SRGetIndexedItem
  229. SRSetIndItem                    SRSetIndexedItem
  230. SRRemoveIndItem                    SRRemoveIndexedItem
  231.